From: Jeremy Bicha Date: Mon, 8 Oct 2012 16:16:55 +0000 (-0400) Subject: dash: Open 'Show Apps' with Super+A X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5604 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=dd3484b93f3f846c98a331bdc7243f91d57b6ac8;p=gnome-shell.git dash: Open 'Show Apps' with Super+A This is a workaround for power users for the "Show Apps" button placement being too inconvenient to press at the bottom of the dash favorites list. Unity also uses Super+A to show the Apps lens. https://bugzilla.gnome.org/show_bug.cgi?id=685738 --- diff --git a/data/50-gnome-shell-system.xml.in b/data/50-gnome-shell-system.xml.in index 4c7e9929b..7dac05fce 100644 --- a/data/50-gnome-shell-system.xml.in +++ b/data/50-gnome-shell-system.xml.in @@ -8,5 +8,8 @@ + + diff --git a/data/org.gnome.shell.gschema.xml.in.in b/data/org.gnome.shell.gschema.xml.in.in index 824d1b7e2..0fd89bc59 100644 --- a/data/org.gnome.shell.gschema.xml.in.in +++ b/data/org.gnome.shell.gschema.xml.in.in @@ -83,6 +83,14 @@ value here is from the GsmPresenceStatus enumeration. Keybinding to open the application menu. + + ["<Super>a"] + <_summary>Keybinding to open the "Show Applications" view + <_description> + Keybinding to open the "Show Applications" view of the Activities + Overview. + + ["<Super>m"] <_summary>Keybinding to toggle the visibility of the message tray diff --git a/js/ui/viewSelector.js b/js/ui/viewSelector.js index 2e6ca5267..857fa053b 100644 --- a/js/ui/viewSelector.js +++ b/js/ui/viewSelector.js @@ -1,6 +1,7 @@ // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- const Clutter = imports.gi.Clutter; +const Gio = imports.gi.Gio; const Gtk = imports.gi.Gtk; const Mainloop = imports.mainloop; const Meta = imports.gi.Meta; @@ -19,6 +20,7 @@ const Tweener = imports.ui.tweener; const Wanda = imports.ui.wanda; const WorkspacesView = imports.ui.workspacesView; +const SHELL_KEYBINDINGS_SCHEMA = 'org.gnome.shell.keybindings'; const FocusTrap = new Lang.Class({ Name: 'FocusTrap', @@ -141,6 +143,16 @@ const ViewSelector = new Lang.Class({ // accessing the properties. this.constrainHeight = new Clutter.BindConstraint({ source: this._pageArea, coordinate: Clutter.BindCoordinate.HEIGHT }); + + global.display.add_keybinding('toggle-application-view', + new Gio.Settings({ schema: SHELL_KEYBINDINGS_SCHEMA }), + Meta.KeyBindingFlags.NONE, + Lang.bind(this, this._showWithAppsPage)); + }, + + _showWithAppsPage: function() { + Main.overview.show(); + this._showAppsButton.set_checked(true); }, show: function() {